import request from "@/utils/request";

export function getList(data) {
  return request({
    url: "/api/v1/forwarder/list",
    method: "get",
    data: data
  });
}

export function getDetail(data) {
  return request({
    url: "/api/v1/forwarder/detail",
    method: "get",
    data: data
  });
}

export function editName(data) {
  return request({
    url: "/api/v1/forwarder/name/edit",
    method: "post",
    data: data
  });
}
export function editInfo(data) {
  return request({
    url: "/api/v1/forwarder/info/edit",
    method: "post",
    data: data
  });
}
export function editConfig(data) {
  return request({
    url: "/api/v1/forwarder/config/edit",
    method: "post",
    data: data
  });
}
export function getTypeList(data) {
  return request({
    url: "/api/v1/forwarder/type/list",
    method: "get",
    data: data
  });
}

export function forwarderCreate(data) {
  return request({
    url: "/api/v1/forwarder/create",
    method: "post",
    data: data
  });
}